<div class="fly-header header_nav_hover" style="border-bottom: 1px solid #01AAED;">
    <div class="layui-container">
        <a class="fly-logo" href="/" style="top: 0;">
            <img src="__COMMON__/images/andphp_logo.png" height="60" alt="layui">
        </a>
        <ul class="layui-nav fly-nav layui-hide-xs">
            <li class="layui-nav-item">
                <a href="/{$default_index}.html" target="_self" title="门面">
                    <i class="layui-icon">&#xe68e;</i>Index </a>
            </li>
            {volist name="nav" id="vo" }
            {eq name="vo.pid" value="0"}
            <li class="layui-nav-item">
                <a href="{$vo.value|getNavLink=$vo.is_link}" target="{$vo.target}" title="{$vo.alias}">
                    <i class="layui-icon">{$vo.icon|raw}</i>{$vo.name}
                </a>
            </li>
            {/eq}
            {/volist}
        </ul>
        <ul class="layui-nav fly-nav-user">
            {if condition="$Think.session.userId neq ''"}
            <!-- 登入后的状态 -->
            <li class="layui-nav-item">
                <a class="fly-nav-avatar" href="javascript:;">
                    <cite class="layui-hide-xs">{$Think.session.nickname}</cite>

                    <img src="{$Think.session.thumb_url}"></a>

                <dl class="layui-nav-child">
                    <dd>
                        <a href="{:url('user/index/index')}">
                            <i class="layui-icon">&#xe612;</i>个人中心</a>

                    </dd>
                    <dd>
                        <a href="{:url('user/message/index')}">
                            <i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a>
                    </dd>
                    <dd>
                        <a href="{:url('user/home/index',array('id'=>$Think.session.userId))}">
                            <i class="layui-icon" style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a>
                    </dd>
                    <hr style="margin: 5px 0;">
                    <dd>
                        <a data-url="{:url('user/logout/index')}" location-url="{:url('home/Index/index')}" href="javascript:void(0)" class="login_logout" style="text-align: center;">退出</a></dd>
                </dl>
                <!-- <a href="{:url('user/index/topic')}"><span class="layui-badge" id="number">0</span></a> -->
            </li>
            <!-- <span class="layui-nav-bar" style="left: 46.5px; top: 55px; width: 0px; opacity: 0;">22</span> -->
            <!-- <li class="layui-nav-item" style="margin-right:15px" id="message" style="visibility: hidden">
                <a href="{:url('user/index/topic')}"><span class="layui-badge" id="number">0</span></a>
            </li> -->

            {else /}
            <li class="layui-nav-item">
                <a class="iconfont icon-touxiang layui-hide-xs" href="/login.html"></a>
            </li>
            <li class="layui-nav-item">
                <a href="/login.html">登入</a>
            </li>
            <li class="layui-nav-item">
                <a href="/join.html">注册</a>
            </li>
            <!-- <li class="layui-nav-item layui-hide-xs">
                <a href="/user/applogin/qqlogin.html" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" title="QQ登入" class="iconfont icon-qq"></a>
            </li> -->
            <!--<li class="layui-nav-item layui-hide-xs">
            <a href="/app/weibo/" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})" title="微博登入" class="iconfont icon-weibo"></a>
          </li>-->
            {/if}
        </ul>
    </div>
</div>